import App from './App'
import Api from './config/apiUrl.js';
import  * as Db from './config/db.js';
import common from 'config/common.js';
import uView from "uview-ui";
import wxj from './common/wxShare.js';  // 请仔细查看路径是否正确，如果你的目录与我的不同
import * as Config from './config/request.js'
let mpShare = require('uview-ui/libs/mixin/mpShare.js');
Vue.use(uView);

Vue.mixin(mpShare)
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

Vue.prototype.$navigateTo = function navigateTo(url){
	uni.navigateTo({
		url:url
	})
} 
Vue.prototype.$showToast = function showToast(msg){
	uni.showToast({
		icon:'none',
		title:msg
	})
} 
Vue.prototype.$uTips = function showToast(title,type){
	this.$refs.uTips.show({
		title: title,
		type: type || 'error',
		duration: '3000'
	})
} 


Vue.prototype.$wxj = wxj
Vue.prototype.$db = Db;
Vue.prototype.$api = Api;
Vue.prototype.$common = common;
Vue.prototype.$config = Config;




// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif